// 子系统1
class SubSystem1 {
    operation1 () {
        console.log('执行操作1')
    }
}

// 子系统2
class SubSystem2 {
    operation2 () {
        console.log('执行操作2')
    }
}

// 门面类
class Facade {
    constructor() {
        this.subSystem1 = new SubSystem1()
        this.subSystem2 = new SubSystem2()
    }
    operation () {
        this.subSystem1.operation1()
        this.subSystem2.operation2()
    }
}

const facade = new Facade()
facade.operation()